import request from '@/utils/request'

// 获取统计数据
export function getStatistics() {
  return request({
    url: '/race/dashboard/statistics',
    method: 'get'
  })
}

// 获取竞赛类型分布
export function getCompetitionTypeDistribution() {
  return request({
    url: '/race/dashboard/competitionTypeDistribution',
    method: 'get'
  })
}

// 获取高校地区分布
export function getUniversityRegionDistribution() {
  return request({
    url: '/race/dashboard/universityRegionDistribution',
    method: 'get'
  })
}

// 获取竞赛时间分布
export function getCompetitionTimeDistribution() {
  return request({
    url: '/race/dashboard/competitionTimeDistribution',
    method: 'get'
  })
}

// 获取全国竞赛分布
export function getNationalCompetitionDistribution() {
  return request({
    url: '/race/dashboard/nationalCompetitionDistribution',
    method: 'get'
  })
}

// 获取参赛高校学生区域分布
export function getStudentRegionDistribution() {
  return request({
    url: '/race/dashboard/studentRegionDistribution',
    method: 'get'
  })
}

// 获取竞赛状态统计
export function getCompetitionStatusCount() {
  return request({
    url: '/race/competition/status/count',
    method: 'get'
  })
}